package com.eascs.admin.o2o.loan.dao;

import org.springframework.stereotype.Repository;

import com.eascs.admin.common.dao.BaseO2oDao;
import com.eascs.admin.o2o.loan.entity.O2oLoanapplyExpandRecord;

@Repository
public class O2oLoanapplyExpandRecordDao extends BaseO2oDao{

	public O2oLoanapplyExpandRecord queryById(String loanapplyNo){
		String sql = "select * from o2o_loanapply_expand_record t1 where t1.loan_expand_id=? and t1.update_time = (select max(t2.update_time) from o2o_loanapply_expand_record t2)";
		return this.findEntity(sql, O2oLoanapplyExpandRecord.class, loanapplyNo);
	}
}
